package com.hcr.action;

import java.util.Map;



import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
@Component("logoutAction")
public class LogoutAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6407592192626988547L;

	public String execute(){
		ActionContext context=ActionContext.getContext();
		Map<String, Object> session = context.getSession();
		session.clear();
		return "success";
	}
}
